package com.an.nopro.app;

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.an.nopro.entity.UserEntity;
import com.an.nopro.entity.UserSexEnum;
import com.an.nopro.mapper.UserMapper;

/**
 * 
* @ClassName: Test
* @Description: TODO(Spring boot 做单元测试)
* @author antch,861710865@qq.com
* @date 2017年8月7日 下午3:49:02
*
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class Test {

	@Autowired
	private UserMapper userMapper;
	
	@org.junit.Test
	public void testInsert() {
		userMapper.insert(new UserEntity("xiaoan案","123",UserSexEnum.FEMALE,"erfewfewf"));
		userMapper.insert(new UserEntity("cwfwef案","123",UserSexEnum.FEMALE,"erfewfewf"));
		userMapper.insert(new UserEntity("cdscvdsvdvfsv案","234",UserSexEnum.FEMALE,"erfewfewf"));

	}
}
